package model;

import interfaces.RabatInterface;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 *
 * @author Maja
 */
public class Rabat extends UnicastRemoteObject implements RabatInterface {

    private int id;
    private int rabatSats;

    public Rabat(int id, int rabatSats) throws RemoteException {
        this.id = id;
        this.rabatSats = rabatSats;
    }

    @Override
    public int getId() throws RemoteException {
        return id;
    }

    @Override
    public int getRabatsats() throws RemoteException {
        return rabatSats;
    }

}
